package com.ys.web.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

//推广账户备份
@SuppressWarnings("serial")
@Entity
@Table(name = "backup", catalog = "ysanalyze")
public class Backup implements java.io.Serializable {

	private Integer id;
	private String path;
	private Integer companyId;
	private String companyName;
	private Date createTime;
	private Integer isGood;
	private String description;
	
	
	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "path", nullable = false)
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}

	@Column(name = "company_id", nullable = false)
	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	@Column(name = "company_name", nullable = false)
	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_time", nullable = false,length = 19)
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		
		this.createTime = createTime;
	}
	
	@Column(name = "is_good", nullable = false)
	public Integer getIsGood() {
		return isGood;
	}

	public void setIsGood(Integer isGood) {
		this.isGood = isGood;
	}
	
	@Column(name = "description", nullable = true)
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Backup(){
		
	}

	public Backup(Integer id, String path, Integer companyId, String companyName, Date createTime, Integer isGood,
			String description) {
		super();
		this.id = id;
		this.path = path;
		this.companyId = companyId;
		this.companyName = companyName;
		this.createTime = createTime;
		this.isGood = isGood;
		this.description = description;
	}

	

	

	


	
	
}
